import Layout from '@/layout'

export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [{
    path: '', // 默认路由
    component: () => import('@/views/employees'),
    name: 'employees',
    // 路由元信息,可以存储一些数据
    meta: {
      title: '员工管理',
      icon: 'people'
    }
  }, {
    path: 'detail/:id', // 动态路由参数，/:id? ，加?表示非必须参数(不携带参数也能访问detail页)
    component: () => import('@/views/employees/detail'),
    hidden: true, // 在左侧导航中，子节点中只能有一个可显示节点
    meta: {
      title: '员工详情'
    }
  }, {
    path: 'print/:id',
    component: () => import('@/views/employees/print'),
    hidden: true,
    meta: {
      title: '员工打印'
    }
  }]
}
